<?php

namespace app\info\controller;

use app\info\model\ReportModel;
use think\admin\Controller;
use think\db\exception\DataNotFoundException;
use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException;

class Report extends Controller
{
    /**
     * 当前操作数据库
     * @var string
     */
    private string $table = 'Notice';

    /**
     * 用户反馈管理
     * @auth true
     * @menu true
     * @throws DataNotFoundException
     * @throws DbException
     * @throws ModelNotFoundException
     */
    public function index()
    {
        $this->title = '用户反馈管理';
//        $this->type =$this->request->param('type', 'index');
        $this->_query(ReportModel::class)->like('content')->order('id desc')->page(true, true);
    }

    public function del()
    {
    }

    /**
     * 删除
     * @auth true
     * @throws DbException
     */
    public function remove()
    {
        $this->_delete(ReportModel::class);
    }
}